﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DataEntity
{
    [Table("SysRole")]
    public class SysRole:SysLogBaseField
    {
        [Key]
        public int ID { get; set; }

        [Display(Name = "角色名称")]
        [Required(ErrorMessage = "*")]
        public string Name { get; set; }

        [Display(Name = "角色编号")]

        public string Code { get; set; }

        [Display(Name = "是否禁止")]
        [Required(ErrorMessage = "*")]
        public bool BeLock { get; set; }

        [Display(Name = "备注")]
        [StringLength(200, ErrorMessage = "不能超过200个字符")]

        public string Remark { get; set; }
        public virtual List<SysRoleRight> SysRoleRight { get; set; }
    }
}
